// pages/store/store.ts
Page({
  /**
   * 页面的初始数据
   */
  data: {
    storeInfo: {
      background: 'url(https://iknow-pic.cdn.bcebos.com/9825bc315c6034a8d84a891fd913495408237687)',
      nickName: '路遥',
      avatarUrl: 'https://img0.baidu.com/it/u=1069774655,179634375&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',
    },
    posInd: 0,
    tabs: [{
      title: '价目表',
    }, {
      title: '评价'
    }]
  },
  switchThis(e:any) {
    this.setData({
      posInd: e.currentTarget.dataset.index
    })
  },
  sChange(e:any){
    this.setData({
      posInd:e.detail.current
    })
  }
})